#! /bin/bash

ping_test=$(ping $1 -c 1)
left_cuted_ping_test=${ping_test#*time=}
cuted_ping_test=${left_cuted_ping_test%%ms*}
echo $cuted_ping_test
